package com.crm.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.crm.dto.BusinessDto;
import com.crm.dto.CountDto.ClientsDto;
import com.crm.entity.Business;
import com.crm.result.PageResult;
import com.crm.result.PageResultTow;
import com.crm.result.Result;

public interface BusinessService extends IService<Business> {
    /**
     * 新增商机
     * @param business
     */
    void insert(Business business);

    /**
     * 商机分页查询
     * @param businessDto
     * @return
     */
    PageResultTow PageBusinessList(BusinessDto businessDto);

    /**
     * 根据id查询
     * @param id
     * @return
     */
    Business selectByBusinessId(Integer id);

    void putBusiness(Integer businessId, Integer reason);

}
